<?xml version="1.0" encoding="utf-8" ?> 
<TestCase testName="Test_04_OrchestrationConductorEx">

	<TestSetup>
		<TestStep assemblyPath="BizUnit.Extensions.dll" typeName="BizUnit.Extensions.ContextPopulateStep">
			<ContextLoad contextKey="connectionString" keyValue="Integrated Security=SSPI;database=BizTalkMgmtDb;server=(local)" dataType="String" />
		</TestStep>
	</TestSetup>

   
   
	<TestExecution>

		<!-- Ensure orchestration is stopped pre test . Deploying the SDK Sample means that it will be in  a started state anyway-->
		<TestStep assemblyPath="BizUnit.Extensions.BizTalk.dll" typeName="BizUnit.Extensions.BizTalk.OrchestrationConductorExStep" failOnError="true">
			<DelayForCompletion>5</DelayForCompletion>
			<!-- Optional, seconds to delay for this step to complete -->
			<ConnectionString takeFromCtx="connectionString"></ConnectionString>
			<AssemblyName>HelloWorld</AssemblyName>
			<OrchestrationName>Microsoft.Samples.BizTalk.HelloWorld.HelloSchedule</OrchestrationName>
			<Action>Stop</Action>
		</TestStep>

		<!-- Start orchestration -->
		<TestStep assemblyPath="BizUnit.Extensions.BizTalk.dll" typeName="BizUnit.Extensions.BizTalk.OrchestrationConductorExStep" failOnError="true">
			<DelayForCompletion>5</DelayForCompletion>
			<!-- Optional, seconds to delay for this step to complete -->
			<ConnectionString takeFromCtx="connectionString"></ConnectionString>
			<AssemblyName>HelloWorld</AssemblyName>
			<OrchestrationName>Microsoft.Samples.BizTalk.HelloWorld.HelloSchedule</OrchestrationName>
			<Action>Start</Action>
		</TestStep>
		
    </TestExecution>
    
    
    <!-- Test cleanup: test cases should always leave the system in the state they found it -->
    <TestCleanup>
    </TestCleanup>    

</TestCase>


